package com.chainyoung.component_tmmarket.di;

import com.chainyoung.common.di.scope.ActivityScope;
import com.chainyoung.common.di.scope.FragmentScope;
import com.chainyoung.component_tmmarket.mvp.contract.MarketListContract;
import com.chainyoung.component_tmmarket.mvp.contract.MarketMainContract;
import com.chainyoung.component_tmmarket.mvp.contract.SearchMarketListContract;
import com.chainyoung.component_tmmarket.mvp.model.MarketListModel;
import com.chainyoung.component_tmmarket.mvp.model.MarketMainModel;
import com.chainyoung.component_tmmarket.mvp.model.SearchMarketListModel;

import dagger.Module;
import dagger.Provides;

@Module
public class TradeMarketActivityModule {

    private SearchMarketListContract.View listView;

    private MarketMainContract.View view;



    public TradeMarketActivityModule(SearchMarketListContract.View view) {
        this.listView = view;
    }

    public TradeMarketActivityModule(MarketMainContract.View view) {
        this.view = view;
    }



    @ActivityScope
    @Provides
    SearchMarketListContract.View providerCoupleListView() {
        return this.listView;
    }

    @ActivityScope
    @Provides
    SearchMarketListContract.Model providerCoupleListModel(SearchMarketListModel model) {
        return model;
    }


    @ActivityScope
    @Provides
    MarketMainContract.View providerMarketMainView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    MarketMainContract.Model providerMarketMainModel(MarketMainModel model) {
        return model;
    }





}
